package com.fzh.bookstore.biz.goods.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fang
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品编号")
    private String goodsNo;

    @ApiModelProperty(value = "商品图片")
    private String goodsPicture;

    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "商品标题")
    private String subtitle;

    @ApiModelProperty(value = "卖价")
    private BigDecimal price;

    @ApiModelProperty(value = "原价")
    private BigDecimal oldPrice;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "娑撳﹥鐏﹂悩鑸碘偓?T F")
    private String status;

    @ApiModelProperty(value = "鏄惁鎺ㄨ崘 T F")
    private String recommend;

    @ApiModelProperty(value = "闂佸憡甯掑Λ娑氭偖椤愶絿鈻旂紒顐㈢摃")
    private Integer categoryPid;

    @ApiModelProperty(value = "分类小ID")
    private Integer categoryCid;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;


}
